home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Total Web Page (Professional Suite)
/
Total Web Page 99.iso
/
Utilities
/
utils
/
convert.txt
< prev
next >
Wrap
Text File
|
1998-10-30
|
3KB
|
76 lines
Use this program to automatically convert an <OBJECT> tag for IE only into
a <OBJECT>/<EMBED> tag for both IE and Netscape. You could just as easily
copy and paste this with a text editor instead. Notice the difference
in "Browser" parameter and the format for the ImageSrc.
See FAQ for more information.
Sample Input Document(IE Only):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<HTML>
<BODY>
<OBJECT ID="IntraLaunch" WIDTH=65 HEIGHT=77 CLASSID="CLSID:072CB141-B793-11D1-89B6-0020182C1446" CODEBASE="file:///C:\IntraLaunch\sample\IntraLaunch.CAB#version=2,1,0,1">
<PARAM NAME="_ExtentX" VALUE="2240">
<PARAM NAME="_ExtentY" VALUE="1963">
<PARAM NAME="ImageLoc" VALUE="Local">
<PARAM NAME="ImageSrc" VALUE="F:\intranet\web\somepic.jpg">
<PARAM NAME="Run" VALUE="c:\MicrosoftWord\word.exe">
<PARAM NAME="RunParms" VALUE="">
<PARAM NAME="DefDir" VALUE="C:\">
<PARAM NAME="Display" VALUE="MAX">
<PARAM NAME="UsePassword" VALUE="FALSE">
<PARAM NAME="Password" VALUE="0000000000000000">
<PARAM NAME="Sound" VALUE="None">
<PARAM NAME="Pause" VALUE="0">
<PARAM NAME="IsURL" VALUE="FALSE">
</OBJECT>
</HTML>
</BODY>
Sample Output Document(IE & Netscape/ScriptActive):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<HTML>
<BODY>
<OBJECT ID="IntraLaunch" WIDTH=65 HEIGHT=77 CLASSID="CLSID:072CB141-B793-11D1-89B6-0020182C1446" CODEBASE="file:///C:\IntraLaunch\sample\IntraLaunch.CAB#version=2,1,0,1">
<PARAM NAME="_ExtentX" VALUE="2240">
<PARAM NAME="_ExtentY" VALUE="1963">
<PARAM NAME="ImageLoc" VALUE="Local">
<PARAM NAME="ImageSrc" VALUE="F:\intranet\web\somepic.jpg">
<PARAM NAME="Run" VALUE="c:\MicrosoftWord\word.exe">
<PARAM NAME="RunParms" VALUE="">
<PARAM NAME="DefDir" VALUE="C:\">
<PARAM NAME="Display" VALUE="MAX">
<PARAM NAME="UsePassword" VALUE="FALSE">
<PARAM NAME="Password" VALUE="0000000000000000">
<PARAM NAME="Sound" VALUE="None">
<PARAM NAME="Pause" VALUE="0">
<PARAM NAME="IsURL" VALUE="FALSE">
<EMBED NAME="IntraLaunch" WIDTH=65 HEIGHT=77 CLASSID="CLSID:072CB141-B793-11D1-89B6-0020182C1446" CODEBASE="file:///C:\IntraLaunch\sample\IntraLaunch.CAB#version=2,1,0,1" TYPE="application/oleobject"
PARAM__ExtentX="2240"
PARAM__ExtentY="1963"
PARAM_ImageLoc="Local"
PARAM_ImageSrc="F:\intranet\web\somepic.jpg"
PARAM_Run="c:\MicrosoftWord\word.exe"
PARAM_RunParms=""
PARAM_DefDir="C:\"
PARAM_Display="MAX"
PARAM_UsePassword="FALSE"
PARAM_Password="0000000000000000"
PARAM_Sound="None"
PARAM_Pause="0"
PARAM_IsURL="FALSE"
></OBJECT>
</HTML>
</BODY>
Note: The "ImageLoc" parameter must be manually changed to
"Local" for Netscape, The "Remote" getting of graphics will not
work due to a ScriptActive limitation. Therefor the "ImageSrc"
parameter can't be a URL, it must be an absolute file path.
See FAQ for more info.